//
//  MyStock.h
//  Stock
//
//  Created by blacksun on 11-6-16.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//


/**
  自定义添加的个股  
 */

#import <Foundation/Foundation.h>
#import "SQLitePersistentObject.h"


@interface MyStock : SQLitePersistentObject {
    NSString *uuid;
    NSString *name;
    NSNumber *lastClosingPrice;//14.63, 昨日收盘价
    NSNumber *openingPrice;//0,今日开盘价,如果等于0.表示停牌
    NSNumber *closingPrice;//0,今日收盘价，没收盘等于当前价格
    NSString *changedPrice;
    NSString *changedRate;
    NSString *turnover;//0,今日成交量，股数
    NSString *turnoverMoney;//0,今日成交金额
    NSNumber *maxPrice;
    NSNumber *minPrice;
    NSString *tc;
    int cr;//0,机构研报序号
    int pr;//0,内参传闻序号
    NSString * ff;//0,资金流向时间戳
    NSString * ft;//0,主力追踪时间戳
    int cn;//0,公司公告序号
    int mh;//0,相关报道序号
    int crDifference;
    int prDifference;
    int cnDifference;
    int mhDifference;
    NSString *dateTime;
    NSString *dc;
    NSString *currentRate;

}

@property(nonatomic, copy) NSString *uuid;
@property(nonatomic, copy) NSString *name;
@property(nonatomic, copy) NSNumber *lastClosingPrice;
@property(nonatomic, copy) NSNumber *openingPrice;
@property(nonatomic, copy) NSNumber *closingPrice;
@property(nonatomic, copy) NSString *changedPrice;
@property(nonatomic, copy) NSString *changedRate;
@property(nonatomic, copy) NSString *turnover;
@property(nonatomic, copy) NSString *turnoverMoney;
@property(nonatomic, retain) NSNumber *maxPrice;
@property(nonatomic, retain) NSNumber *minPrice;
@property(nonatomic, retain) NSString * tc;
@property(nonatomic, retain) NSString *dc;
@property(nonatomic, retain) NSString *dateTime;
@property(nonatomic, assign) int cr;//0,机构研报序号
@property(nonatomic, assign) int pr;//0,内参传闻序号
@property(nonatomic, retain) NSString * ff;//0,资金流向时间戳
@property(nonatomic, retain) NSString * ft;//0,主力追踪时间戳
@property(nonatomic, assign) int cn;//0,公司公告序号
@property(nonatomic, assign) int mh;//0,相关报道序号

@property(nonatomic, assign) int crDifference;
@property(nonatomic, assign) int prDifference;
@property(nonatomic, assign) int cnDifference;
@property(nonatomic, assign) int mhDifference;

@property(nonatomic, retain) NSString *currentRate;

-(NSInteger)countByUUID;

@end
